package com.dokimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dokimall.common.utils.PageUtils;
import com.dokimall.member.entity.MemberEntity;
import com.dokimall.member.exception.PhoneExistException;
import com.dokimall.member.exception.UserNameExistException;
import com.dokimall.member.vo.LoginUserVo;
import com.dokimall.member.vo.RegistVo;
import com.dokimall.member.vo.SociaUser;

import java.io.IOException;
import java.util.Map;

/**
 * 会员
 *
 * @author mori
 * @email 550144898@qq.com
 * @date 2021-09-26 16:34:03
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(RegistVo registVo);

    void checkPhoneUnique(String phone) throws PhoneExistException;
    void checkUserNameUnique(String userName) throws UserNameExistException;

    MemberEntity login(LoginUserVo loginUserVo);

    MemberEntity login(SociaUser sociaUser) throws Exception;
}

